package com.example.sms.exception;



public class CustomerException extends RuntimeException {


    private ExceptionCode exceptionCode;

    public CustomerException(ExceptionCode exceptionCode){
        super(exceptionCode.getMsg());
        this.exceptionCode=exceptionCode;
    }


    public ExceptionCode getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(ExceptionCode exceptionCode) {
        this.exceptionCode = exceptionCode;
    }
}


